import './assets/styles/main.css'
import { createApp } from 'vue'
const app = createApp(App)

import App from './App.vue'
import router from './router'
import pinia from "./stores"
import axios from '@/api/index'
import { i18n } from '@/lang/index' // yarn add vue-i18n
import plugins from '@/plugins/index';
import registerGlobalComponents from '@/common/globalComponents';

registerGlobalComponents(app) // 全局挂载components中组件


app.use(pinia)
app.use(router)
app.provide('$axios', axios) // 全局注入$axios方法
app.use(i18n)
app.use(plugins) // 全局挂载插件方法

app.mount('#app')
